package com.drug.controller;

import com.drug.domain.Result;
import com.drug.service.DrugCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 药品类别表控制层
 */
@Controller
@RequestMapping("/DrugCategoryController")
public class DrugCategoryController {

    @Autowired
    private DrugCategoryService drugCategoryService;

    /**
     * 查询全部药品类别
     */
    @ResponseBody
    @RequestMapping(value = "/fandAllDrugCategory", produces = "application/json; charset=utf-8")
    public Result fandAllDrugCategory(){

        return drugCategoryService.fandAllDrugCategory();
    }

}
